const pkg = require("./package.json");
const name = pkg.name;
// https://craco.js.org/docs/
module.exports = {
  webpack: {
    configure: {
      output: {
        library: `${name}-[name]`,
        libraryTarget: "umd",
        chunkLoadingGlobal: `webpackJsonp_${name}`,
      },
    },
  },
  devServer: {
    headers: {
      "access-control-allow-origin": "*",
    },
    open: false,
  },
};
